package jeecg.business.vo;



public class CommonAnalysisVo {
	private String name;
	
	private int value;
	
	public CommonAnalysisVo(){}
	
	
	public CommonAnalysisVo(String name, int value) {
		super();
		this.name = name;
		this.value = value;
	}
	
	public CommonAnalysisVo(String name, Long value) {
		super();
		this.name = name;
		this.value = value.intValue();
	}



	public boolean equals(Object name){
		if(name instanceof String){
			if(this.name.equals(name))
				return true;
		}
		
		if(name instanceof CommonAnalysisVo){
			CommonAnalysisVo vo = (CommonAnalysisVo)name;
			return vo.getName().equals(this.name);
		}
		return false;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}	
	
}
